from selenium import webdriver
import time


driver = webdriver.Firefox()
driver.get('https://www.baidu.com')
# driver.maximize_window()
driver.set_window_size(400,200)  #设置浏览器窗口大小
time.sleep(5)
driver.quit()

